package com.woniuxy.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableFeignClients("com.woniuxy")
@EnableTransactionManagement
@ComponentScan(basePackages = {"com.woniuxy.order", "com.woniu.commons"})
@MapperScan({"com.woniuxy.order.mapper", "com.woniuxy.merchant.mapper","com.woniuxy.order.repository,","com.woniuxy.user.mapper","com.woniuxy.permission.mapper"})
public class OrderStart {

    public static void main(String[] args){
        SpringApplication.run(OrderStart.class, args);
        System.out.println("启动成功");
    }

}
